// 码头
import request from "@/utils/https/requests";
// 列表
export function wharfList(data: any) {
  return request({
    url: "/wharf/list",
    method: "post",
    data,
  });
}
// 添加
export function postAddWharf(data: any) {
  return request({
    url: "/wharf/postAdd",
    method: "post",
    data,
  });
}
// 修改
export function postModWharf(data: any) {
  return request({
    url: `/wharf/postMod/${data.id}`,
    method: "post",
    data,
  });
}
// 详情
export function wharfDetail(id: string) {
  return request({
    url: `/wharf/detail/${id}`,
    method: "post",
  });
}
// 删除
export function postDeleteWharf(id: string) {
  return request({
    url: `/wharf/postDelete/${id}`,
    method: "post",
  });
}
